package com.gupaowork.pattern.proxy;

/**
 * @Author heweicheng
 */
public class ClientTest {
    public static void main(String[] args) {
        try {
            Object obj = new MeiPo().getInstance(new Girl());
            Person person = (Person) obj ;
            person.findLove();
            person.marry();
            Action action =  (Action) obj ;
            action.run();
            nihao(args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private static void nihao(String[] args) {
    }
}
